/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package poker_sim;

import java.awt.Color;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 *
 * @author Rob
 */
public class HandRankViewer extends JPanel{
    JTextField[] ctf;
    int YSpacing = 25;
    int Size = 2;
    int Location = 0;
    public HandRankViewer()
    {
        this.setBackground(Color.blue);
        ctf = new JTextField[Size];
        for(int i = 0; i < Size; i++)
        {
            ctf[i] = new JTextField("Default");
            ctf[i].setSize(100, 30);
            ctf[i].setLocation(0, i * YSpacing);
            this.add(ctf[i]);
        }
    }
    
    public void Reset()
    {
        for(int i = 0; i < Size; i++)
        {
            ctf[i].setText("Default");
        }
        Location = 0;
    }
    
    public void AddCardText(String text1)
    {
        ctf[Location].setText(text1);
        Location++;
    }
    
}
